<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Book
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: content.php 9279 2011-09-20 23:44:15Z john $
 * @author     John
 */
return array(
    //Popular Book Entries
    array(
        'title' => 'Popular Book Entries',
        'description' => 'Displays a list of most viewed book entries.',
        'category' => 'Books',
        'type' => 'widget',
        'name' => 'book.list-popular-books',
        'isPaginated' => true,
        'defaultParams' => array(
            'title' => 'Popular Book Entries',
        ),
        'requirements' => array(
            'no-subject',
        ),
        'adminForm' => array(
            'elements' => array(
                array(
                    'Radio',
                    'popularType',
                    array(
                        'label' => 'Popular Type',
                        'multiOptions' => array(
                            'view' => 'Views',
                            'comment' => 'Comments',
                        ),
                        'value' => 'comment',
                    )
                ),
            )
        ),
    ),
    //Recent Book Entries
    array(
        'title' => 'Recent Book Entries',
        'description' => 'Displays a list of recently posted book entries.',
        'category' => 'Books',
        'type' => 'widget',
        'name' => 'book.list-recent-books',
        'isPaginated' => true,
        'defaultParams' => array(
            'title' => 'Recent Book Entries',
        ),
        'requirements' => array(
            'no-subject',
        ),
        'adminForm' => array(
            'elements' => array(
                array(
                    'Radio',
                    'recentType',
                    array(
                        'label' => 'Recent Type',
                        'multiOptions' => array(
                            'creation' => 'Creation Date',
                            'modified' => 'Modified Date',
                        ),
                        'value' => 'creation',
                    )
                ),
            )
        ),
    ),
    //All Books
    array(
        'title' => 'All Books',
        'description' => 'Displays a list of all books.',
        'category' => 'Books',
        'type' => 'widget',
        'name' => 'book.list-all-books',
        'isPaginated' => true,
        'defaultParams' => array(
            'title' => 'All Book',
        ),
    ),
    //Book Detail 
    array(
        'title' => 'Book Detail',
        'description' => 'Displays a book detail.',
        'category' => 'Books',
        'type' => 'widget',
        'name' => 'book.detail-books',
        'isPaginated' => true,
        'defaultParams' => array(
            'title' => 'Detail Book',
        ),
    ),
    //Book Homepage
    array(
        'title' => 'Homepage Books',
        'description' => 'Displays book homepage.',
        'category' => 'Books',
        'type' => 'widget',
        'name' => 'book.homepage-books',
        'isPaginated' => true,
        'defaultParams' => array(
            'title' => 'Homepage Book',
        ),
    ),
        )
?>